package cn.zyn.servicebase.exceptionhandler;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ：zyn
 * @date ：Created in 2022/5/15 20:39
 * @description：自定义异常
 * @modified By：
 * @version: $
 */
@Data
@AllArgsConstructor//生成有参构造方法//全参
@NoArgsConstructor//生成无参构造方法
public class GuliException extends RuntimeException {

    @ApiModelProperty(value = "状态码")
    private Integer code;//状态码
    private String msg;//异常信息

}
